package com.training.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.training.model.City;

@FeignClient(value = "ms-provider", fallback = CityClientHystrix.class)
public interface CityClient {
    @RequestMapping( value = "/api/city/detail",  method = RequestMethod.GET)
    City detail(@RequestParam(value = "id") Integer id);
}